/*
 * @Author: CB
 * @Date: 2023-07-21 18:08:59
 * @Description: 交互基类
 */
import { native } from "cc";

export class PluginBase {
    public callStaticMethod(className: string, methodName: string, methodSignature: string, ...parameters: any) {
        try {
            return native.reflection.callStaticMethod(className, methodName, methodSignature, ...parameters);
        } catch (error) {
            console.error('PluginBase callStaticMethod', className, methodName);
            console.error(JSON.stringify(error));

        }
    }

    formatArray(arr: any[]): string {
        return arr.join(',');
    }

}


